/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ajz.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import org.hibernate.validator.constraints.Length;

/**
 * 模板主体Entity
 * 为什么要设置naturalGasContract，前面naturalGas这样的字段，方便处理之后多个类型，但是存储同样名字的东西，比如天然气合同，液化气合同
 * @author zzf
 * @version 2019-04-15
 */
@Table(name="ajz_natural_gas", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="natural_gas_nature", attrName="naturalGasNature", label="天然气性质"),
		@Column(name="natural_gas_contract", attrName="naturalGasContract", label="天然气合同"),
		@Column(name="base_id", attrName="baseId", label="对应公司的id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AjzNaturalGas extends DataEntity<AjzNaturalGas> {
	
	private static final long serialVersionUID = 1L;
	private String naturalGasNature;		// 天然气性质
	private String naturalGasContract;		// 天然气合同
	private String baseId;		// 对应公司的id
	
	public AjzNaturalGas() {
		this(null);
	}

	public AjzNaturalGas(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="天然气性质长度不能超过 255 个字符")
	public String getNaturalGasNature() {
		return naturalGasNature;
	}

	public void setNaturalGasNature(String naturalGasNature) {
		this.naturalGasNature = naturalGasNature;
	}
	
	@Length(min=0, max=255, message="天然气合同长度不能超过 255 个字符")
	public String getNaturalGasContract() {
		return naturalGasContract;
	}

	public void setNaturalGasContract(String naturalGasContract) {
		this.naturalGasContract = naturalGasContract;
	}
	
	@Length(min=0, max=64, message="对应公司的id长度不能超过 64 个字符")
	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}
	
}